<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="referrer" content="no-referrer" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title>神兔网络推广系统</title>
    <link
      rel="stylesheet"
      href="//at.alicdn.com/t/font_2632878_x38i66e89c.css"
    />
  </head>
  <script src="//at.alicdn.com/t/font_2632878_x38i66e89c.js"></script>
  <!-- <script src="//at.alicdn.com/t/font_2029936_1jjiriorqwj.js"></script> -->
  <script type="text/javascript">
    document.write(
      unescape(
        "%3Cspan id='cnzz_stat_icon_1278900140'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1278900140%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"
      )
    );
  </script>
  <body>
    <noscript>
      <strong
        >We're sorry but 神兔网络推广系统 doesn't work properly without
        JavaScript enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    function banBackSpace(e) {
      var ev = e || window.event;
      //各种浏览器下获取事件对象
      var obj =
        ev.relatedTarget || ev.srcElement || ev.target || ev.currentTarget;
      //按下Backspace键
      if (ev.keyCode == 8) {
        var tagName = obj.nodeName; //标签名称
        //如果标签不是input或者textarea则阻止Backspace
        if (tagName != "INPUT" && tagName != "TEXTAREA") {
          return stopIt(ev);
        }
        var tagType = obj.type.toUpperCase(); //标签类型
        //input标签除了下面几种类型，全部阻止Backspace
        if (
          tagName == "INPUT" &&
          (tagType != "TEXT" && tagType != "TEXTAREA" && tagType != "PASSWORD")
        ) {
          return stopIt(ev);
        }
        //input或者textarea输入框如果不可编辑则阻止Backspace
        if (
          (tagName == "INPUT" || tagName == "TEXTAREA") &&
          (obj.readOnly == true || obj.disabled == true)
        ) {
          return stopIt(ev);
        }
      }
    }
    function stopIt(ev) {
      if (ev.preventDefault) {
        //preventDefault()方法阻止元素发生默认的行为
        ev.preventDefault();
      }
      if (ev.returnValue) {
        //IE浏览器下用window.event.returnValue = false;实现阻止元素发生默认的行为
        ev.returnValue = false;
      }
      return false;
    }
    (function() {
      //实现对字符码的截获，keypress中屏蔽了这些功能按键
      document.onkeypress = banBackSpace;
      //对功能按键的获取
      document.onkeydown = banBackSpace;
    })();
  </script>
</html>
